﻿using Forum.Model.Validation;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Forum.Model.Request
{
    public class AuthReq
    {
        public string username { get; set; }
        public string password { get; set; }
    }

    public class PwdReq
    {
        [Required]
        public string userId { get; set; }
        [Required]
        public string password { get; set; }

        [MinLength(6, ErrorMessage = "密码最小长度为6位")]
        [MaxLength(16, ErrorMessage = "密码最大长度为16位")]
        [EnglishNumberSymbol]
        [DisplayName("密码")]
        public string newPassword { get; set; }
    }
}
